Exception [ Error ]: Sorry, but there is no solution with that URI
203 204 $result_array = $result->as_array(); 205 206 if(count($result_array) == 0) 207 208 throw new Exception('Sorry, but there is no solution with that URI'); 209 210 return (int) $result_array[0]['solution_id']; 211 } 212 213 /**
53 { 54 $uri = Uri::segment(2); 55 $subnav['uri'] = $uri; 56 $subnav['solutions'] = Model_Solutions::get_solutions(Model_Language::get_language_id(Config::get('language'))); 57 $data['subnav'] = View::factory('solutions/subnav.jade', $subnav); 58 $data['current_solution'] = Model_Solutions::get_solution(Model_Solutions::get_solution_id($uri), Model_Language::get_language_id(Config::get('language'))); 59 60 $title = Lang::line('solutions.title') . ': ' . $data['current_solution']['name']; 61 $link = $data['current_solution']['link']; 62 63 parent::set_meta($link,
376 logger(Fuel::L_INFO, 'Calling '.$class.'::before', __METHOD__); 377 $controller->before(); 378 } 379 380 logger(Fuel::L_INFO, 'Calling '.$class.'::'.$method, __METHOD__); 381 call_user_func_array(array($controller, $method), $this->method_params); 382 383 // Call the after method if it exists 384 if (method_exists($controller, 'after')) 385 { 386 logger(Fuel::L_INFO, 'Calling '.$class.'::after', __METHOD__);
58 59// Boot the app 60require_once APPPATH.'bootstrap.php'; 61 62// Generate the request, execute it and send the output. 63$response = Request::factory()->execute()->response(); 64 65// This will add the execution time and memory usage to the output. 66// Comment this out if you don't use it. 67$bm = Profiler::app_total(); 68$response->body(str_replace(array('{exec_time}', '{mem_usage}'), array(round($bm[0], 4), round($bm[1] / pow(1024, 2), 3)), $response->body()));